name: pre-commit run_id: commands[0] env LANG: en_US.UTF-8 env HOME: /home/jenkins env PATH: /w/workspace/integration-test-tox-verify-master/.tox/pre-commit/bin:/opt/pyenv/bin:/tmp/venv-rUbm/bin:/opt/pyenv/shims:/home/jenkins/.local/bin:/home/jenkins/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/puppetlabs/bin env PYTHONHASHSEED: 2037321398 env PIP_DISABLE_PIP_VERSION_CHECK: 1 env PYTHONIOENCODING: utf-8 env TOX_ENV_NAME: pre-commit env TOX_WORK_DIR: /w/workspace/integration-test-tox-verify-master/.tox env TOX_ENV_DIR: /w/workspace/integration-test-tox-verify-master/.tox/pre-commit env VIRTUAL_ENV: /w/workspace/integration-test-tox-verify-master/.tox/pre-commit metadata pid: 7459 cwd: /w/workspace/integration-test-tox-verify-master allow: /w/workspace/integration-test-tox-verify-master/.tox/pre-commit/bin/* cmd: pre-commit run --all-files --show-diff-on-failure exit_code: 1 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. [INFO] Initializing environment for https://github.com/PyCQA/flake8. [INFO] Initializing environment for https://github.com/psf/black. [INFO] Initializing environment for https://github.com/MarketSquare/robotframework-tidy. [INFO] Initializing environment for https://github.com/MarketSquare/robotframework-tidy:robotframework==6.1.1. [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. [INFO] Initializing environment for local:rstcheck,sphinx. [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/PyCQA/flake8. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/psf/black. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/MarketSquare/robotframework-tidy. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for local. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... trim trailing whitespace.................................................Passed flake8...................................................................Failed - hook id: flake8 - exit code: 1 csit/libraries/TopologyNetconfNodes.py:14:1: E302 expected 2 blank lines, found 1 def configure_device_range( ^ tools/netconf_tools/configurer.py:133:1: E305 expected 2 blank lines after class or function definition, found 1 SCANDIUM = 21 ^ black....................................................................Failed - hook id: black - files were modified by this hook reformatted csit/libraries/TopologyNetconfNodes.py reformatted tools/netconf_tools/configurer.py All done! ✨ 🍰 ✨ 2 files reformatted, 126 files left unchanged. robotidy.................................................................Passed rstcheck.................................................................Passed pre-commit hook(s) made changes. If you are seeing this message in CI, reproduce locally with: `pre-commit run --all-files`. To run `pre-commit` as part of git workflow, use `pre-commit install`. All changes made by hooks: diff --git a/csit/libraries/TopologyNetconfNodes.py b/csit/libraries/TopologyNetconfNodes.py index 9a26d1c8..0a18e857 100644 --- a/csit/libraries/TopologyNetconfNodes.py +++ b/csit/libraries/TopologyNetconfNodes.py @@ -11,6 +11,7 @@ from uuid import uuid4 SCANDIUM = 21 + def configure_device_range( restconf_url, device_name_prefix, diff --git a/tools/netconf_tools/configurer.py b/tools/netconf_tools/configurer.py index d10e1fd7..0bcdfb17 100644 --- a/tools/netconf_tools/configurer.py +++ b/tools/netconf_tools/configurer.py @@ -130,6 +130,7 @@ def parse_arguments(): ) return parser.parse_args() # arguments are read + SCANDIUM = 21 CALCIUM_DATA_TEMPLATE = string.Template(